package com.zyz.bookborrowing.service;

import com.zyz.bookborrowing.bean.Book;
import com.zyz.bookborrowing.bean.PageBean;

import java.util.List;

public interface IBookService {

    public List<Book> list(Book book);

    public Integer save(Book book);

    public Integer updateBook(Book book);

    public Integer deleteById(Integer id);

    public Book queryById(Integer id);

    List<Book> queryListByState(int code);

    public PageBean<Book> queryAll(String no);

    public long getTotalCount();
}
